package com.crazy.model.major.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

/**
 * <p>
 * 调查问卷表
 * </p>
 *
 * @author ${author}
 * @since 2020-12-24
 */
@TableName("T_SURVEY")
public class TSurvey extends Model<TSurvey> {

    /**
    * 所有字段名
    */
    public static class Columns {
        /**
        * 
        */
        public static final String id = "ID";
        /**
        * 昵称
        */
        public static final String name = "NAME";
        /**
        * 性别
        */
        public static final String sex = "SEX";
        /**
        * 爱好
        */
        public static final String hobbys = "HOBBYS";
        /**
        * 手机号
        */
        public static final String telephone = "TELEPHONE";
        /**
        * 意见与建议
        */
        public static final String advice = "ADVICE";
        /**
        * 
        */
        public static final String createTime = "CREATE_TIME";
    }

    @TableId(value = "ID", type = IdType.AUTO)
    private Long id;

    /**
     * 昵称
     */
    @TableField("NAME")
    private String name;

    /**
     * 性别
     */
    @TableField("SEX")
    private Integer sex;

    /**
     * 爱好
     */
    @TableField("HOBBYS")
    private String hobbys;

    /**
     * 手机号
     */
    @TableField("TELEPHONE")
    private String telephone;

    /**
     * 意见与建议
     */
    @TableField("ADVICE")
    private String advice;

    @TableField("CREATE_TIME")
    private LocalDateTime createTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getHobbys() {
        return hobbys;
    }

    public void setHobbys(String hobbys) {
        this.hobbys = hobbys;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getAdvice() {
        return advice;
    }

    public void setAdvice(String advice) {
        this.advice = advice;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TSurvey{" +
        "id=" + id +
        ", name=" + name +
        ", sex=" + sex +
        ", hobbys=" + hobbys +
        ", telephone=" + telephone +
        ", advice=" + advice +
        ", createTime=" + createTime +
        "}";
    }
}
